package com.xuetang9.t9.hotel.services;

import com.xuetang9.t9.hotel.beans.BookOrder;

import java.util.List;

/**
 * @ProjectName: MyHotelProject
 * @Package: com.xuetang9.t9.hotel.service
 * @ClassName: IBookOrderService
 * @Author: ChinaHp
 * @Description: 预定订单服务层接口
 * @Date: 2020/2/24 17:21
 * @Version: 1.0
 */
public interface IBookOrderService {
    /**
     * 新增
     * @param bookOrder
     * @return
     */
    boolean add(BookOrder bookOrder);

    /**
     * 删除
     * @param id
     * @return
     */
    boolean remove(Integer id);

    /**
     * 获取所有数据
     * @return
     */
    List<BookOrder> query();

    /**
     * 修改
     * @param bookOrder
     * @return
     */
    boolean alter(BookOrder bookOrder);

    /**
     * 获取今日所有预约订单
     * @return
     */
    List<BookOrder> todayTheOrder();

    List<BookOrder> queryStateOrder(String state);

    /**
     * 根据id查询记录
     * @param id
     * @return
     */
    BookOrder selectById(Integer id);
}
